﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Materpage.master" AutoEventWireup="true" CodeFile="DetailProduct.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="css/detailproduct.css" rel="stylesheet" type="text/css" />
    <meta charset="utf-8" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">   
    <div id = "DivINeedToAddStuffTo" runat="server"/>
    <asp:DataList ID="DataList1" runat="server" OnSelectedIndexChanged="DataList1_SelectedIndexChanged" OnItemCommand="DataList1_ItemCommand">
        <ItemTemplate>
            <div class="detail">
                <p class="tit">Thông tin chi tiết sản phẩm</p> 
                <div class="left"><asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("image") %>' Height="300"  Width="330" /></div>
                <div class="right">
                    <asp:Label ID="lblIdSP" runat="server" Text='<%# Eval("ProId") %>' Visible="False"></asp:Label>
                    <p>Tên sản phẩm: <asp:Label ID="LblName" runat="server" Text='<%# Eval("ProName") %>'></asp:Label></p>
                    <p>Giá: <asp:Label ID="lbtPrice" runat="server" Text='<%# Eval("Price") %>'></asp:Label> VNĐ</p>
                    <p>Số sản phẩm còn sẵn: <asp:Label ID="lblQuantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label> </p>
                    <p>Ý nghĩa sản phẩm: <asp:Label ID="lblContent" runat="server" Text='<%# Eval("content") %>'></asp:Label> </p>
                        
                    <asp:Button ID="btnThemVaoGio" CssClass="button1" runat="server" Visible="true" Text="Thêm vào giỏ" CommandName="themvaogio" />
                    
                    
                </div>               
            </div>
        </ItemTemplate>
    </asp:DataList>
   <p class="titleImage">Hình ảnh chi tiết sản phẩm</p>
    <asp:DataList ID="DataList2" runat="server">
        <ItemTemplate>
            <div class="image_album">            
            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImagePath") %>'   Width="600" />
            </div>
        </ItemTemplate>
    </asp:DataList>
</asp:Content>

